Guild icon
wafer.space Community
📐 - Designing / 📝-project-template / `librelane-magicdrc` crashes
Between 2025-10-31 11:59 p.m. and 2025-12-01 12:00 a.m.
Avatar
Leo Moser (mole99) 2025-11-19 7:20 a.m.
7:20 a.m.
No, that is not expected. librelane-magicdrc only skips the KLayout.DRC step. Streamout, however, should still be done with both magic and KLayout in order to compare the GDS. Can you verify that both 56-magic-streamout and 57-klayout-streamout contain a GDS?
Avatar
Haha ok, I'll dig in a bit more this evening! Thanks
👌 1
Avatar
so yeah, the .magic.drc has a size of 0 bytes, and the previous step failed, citing: Cell nmos_1p2_02_R270_512x8m81 read from path /home/luke/proj/riscboy-180/gf180mcu/gf180mcuD/libs.ref/gf180mcu_fd_ip_sram/mag File /home/luke/proj/riscboy-180/gf180mcu/gf180mcuD/libs.ref/gf180mcu_fd_ip_sram/mag/M1_PSUB_05_512x8m81.mag couldn't be read Failure to read entire subtree of the cell. Failed on cell M1_PSUB_05_512x8m81. I/O error in writing file /home/luke/proj/riscboy-180/librelane/runs/RUN_2025-11-19_18-47-13/56-magic-streamout/chip_top.magic.gds. File may be incompletely written. [INFO] GDS Write Complete That SRAM filename does look wrong to me. This similar filename does exist: ./gf180mcu/gf180mcuD/libs.ref/gf180mcu_fd_ip_sram/mag/M1_PSUB_05_512x8m81.mag Not totally sure where the incorrect filename is coming from. I don't see it in my config.yaml
7:11 p.m.
oh wait no, that filename (from find) does match the one that magic couldn't read 🤔
Avatar
Leo Moser (mole99) 2025-11-19 7:12 p.m.
Hm, maybe too many file handlers open? On what platform are you building?
Avatar
ahhh that could be it
7:12 p.m.
I'm on Ubuntu
Avatar
Leo Moser (mole99) 2025-11-19 7:13 p.m.
On Debian I haven't had this issue before 🤔
Avatar
luke@triton:~/proj/riscboy-180/hdl$ cat /proc/sys/fs/file-max 9223372036854775807 luke@triton:~/proj/riscboy-180/hdl$ ulimit -Hn 1048576 luke@triton:~/proj/riscboy-180/hdl$ ulimit -Sn 1024 luke@triton:~/proj/riscboy-180/hdl$ wat
7:16 p.m.
thanks that was a good tip, I'll try with an increased limit. Somehow never hit this before 😅
Avatar
Leo Moser (mole99) 2025-11-19 7:17 p.m.
I only thought of it because ReJ has hit it on macOS recently ^^
👍 1
Avatar
you do tend to develop these spidey senses over time on a project
🕷️ 1
Avatar
It seems much happier now. Thank you very much for your help
Avatar
Leo Moser (mole99) 2025-11-19 7:54 p.m.
Glad I could help!
Avatar
Tim 'mithro' Ansell 2025-11-19 8:51 p.m.
@Leo Moser (mole99) - Maybe LibreLane should have a check that ulimit is a reasonable value?
Avatar
Avatar
Tim 'mithro' Ansell
@Leo Moser (mole99) - Maybe LibreLane should have a check that ulimit is a reasonable value?
Leo Moser (mole99) 2025-11-20 9:47 a.m.
Description Leading up to the first wafer.space shuttle, two users faced the issue that the max open file descriptors count was set too low by default. One user is on Ubuntu and the other on macOS,...
Exported 17 message(s)
Timezone: UTC+0